package com.guomao;

public class JavaDemo3 {

    public static void main(String[] args) {
        int x = 100;
//              100  100    101
        int y = x++ + --x + ++x;

        System.out.println(x);//
        System.out.println(y);//

        short s = 1;
        s += 1;//s = (short) (s + 1);
//        s = s + 1;
        System.out.println(s);

//  字符串和任意类型的数据相加结果都是字符串
        System.out.println("Hello" + "World");
        System.out.println("Hello" + 5 + 5);//
        System.out.println("Hello" + (5 + 5));//
        System.out.println(5 + 5 + "Hello");//


        Thread thread = new Thread();

        System.out.println("hello"+thread);
        //helloThread[Thread-0,5,main]
    }
}
